/**
 * 类：学生
 */
public class Student {
    public double score;
    public int state;
    public int id;

    Student() {
        System.out.println("Build one student!");
    }

    public void setID(int i) {
        id = i;
    }

    public void setState(int i) {
        state = i;
    }

    public void setScore(double i) {
        score = 1;
    }

    public void getInfo() {
        System.out.printf("Student %d , state %d, score %.2f\n", id, state, score);
    }

    public double getScore() {
        return score;
    }

    public int getState() {
        return state;
    }
}
